package com.xbongbong.workflow.model;


import com.xbongbong.workflow.domain.entity.WorkflowBackupRichTextEntity;

import java.util.List;
import java.util.Map;


/**
 * @author bomfish
 */
public interface WorkflowBackupRichTextModel {
   Long insert(WorkflowBackupRichTextEntity entity);

   void insertBatch(List<WorkflowBackupRichTextEntity> list);

   List<WorkflowBackupRichTextEntity> findEntities(Map<String, Object> param);

   Integer getEntityCount(Map<String, Object> param);

   void update(WorkflowBackupRichTextEntity entity);

   WorkflowBackupRichTextEntity getByKey(Long key, String corpid);

    void updateByBackupId(WorkflowBackupRichTextEntity entity);

   WorkflowBackupRichTextEntity getByBackupId(Long backupId, String corpid);

    boolean hasNoEmptyData(Map<String, Object> params);

    Integer countNoEmptyData(Map<String, Object> params);

    void deleteCompelete(String corpid, Long formId, List<Integer> delList, Integer afterDel);
}
